package com.homedo.microservice.open.service.gateway.bean.po.enhanced;

import com.homedo.common.dao.bean.po.enhanced.base.BaseEnhanced;
import com.homedo.microservice.open.service.gateway.bean.enums.forzuulfilterdefault.ProgressEnum4ZuulFilterDefault;
import com.homedo.microservice.open.service.gateway.bean.enums.forzuulfilterdefault.StatusEnum4ZuulFilterDefault;
import com.homedo.microservice.open.service.gateway.bean.po.ZuulFilterDefault;
import org.springframework.beans.BeanUtils;

import java.util.Date;

/**
 * @author 作者 jgshun
 * @date 创建时间 2018年09月14日 14时56分00秒
 */
public class ZuulFilterDefaultEnhanced extends BaseEnhanced {
    public ZuulFilterDefaultEnhanced(ZuulFilterDefault zuulFilterDefault) {

        BeanUtils.copyProperties(zuulFilterDefault, this);

        //自动生成 细微误差自己调整

        if (zuulFilterDefault.getStatus() != null) {
            this.status = StatusEnum4ZuulFilterDefault
                    .getStatusEnumByCode(zuulFilterDefault.getStatus().shortValue());
        }
        if (zuulFilterDefault.getProgress() != null) {
            this.progress = ProgressEnum4ZuulFilterDefault
                    .getProgressEnumByCode(zuulFilterDefault.getProgress().shortValue());
        }
    }

    public ZuulFilterDefaultEnhanced() {
    }

    private Integer id;
    private String applicationName;
    private String filterId;
    private String filterName;
    private Integer revision;
    private StatusEnum4ZuulFilterDefault status;
    private ProgressEnum4ZuulFilterDefault progress;
    private String filterType;
    private String disablePropertyName;
    private Integer filterOrder;
    private Date createTime;
    private Date updateTime;
    private java.lang.String comment;

    private ConfigEnhanced zuulFilterDisableConfEnhanced;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getApplicationName() {
        return applicationName;
    }

    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    public String getFilterId() {
        return filterId;
    }

    public void setFilterId(String filterId) {
        this.filterId = filterId;
    }

    public String getFilterName() {
        return filterName;
    }

    public void setFilterName(String filterName) {
        this.filterName = filterName;
    }

    public Integer getRevision() {
        return revision;
    }

    public void setRevision(Integer revision) {
        this.revision = revision;
    }

    public StatusEnum4ZuulFilterDefault getStatus() {
        return status;
    }

    public void setStatus(StatusEnum4ZuulFilterDefault status) {
        this.status = status;
    }

    public ProgressEnum4ZuulFilterDefault getProgress() {
        return progress;
    }

    public void setProgress(ProgressEnum4ZuulFilterDefault progress) {
        this.progress = progress;
    }

    public String getFilterType() {
        return filterType;
    }

    public void setFilterType(String filterType) {
        this.filterType = filterType;
    }

    public String getDisablePropertyName() {
        return disablePropertyName;
    }

    public void setDisablePropertyName(String disablePropertyName) {
        this.disablePropertyName = disablePropertyName;
    }

    public Integer getFilterOrder() {
        return filterOrder;
    }

    public void setFilterOrder(Integer filterOrder) {
        this.filterOrder = filterOrder;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public ConfigEnhanced getZuulFilterDisableConfEnhanced() {
        return zuulFilterDisableConfEnhanced;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public void setZuulFilterDisableConfEnhanced(ConfigEnhanced zuulFilterDisableConfEnhanced) {
        this.zuulFilterDisableConfEnhanced = zuulFilterDisableConfEnhanced;

    }
}